package top.xiaoshuaila.moments.utils;



import javax.xml.crypto.Data;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Dateutils {
    public static String getNowDate(){
        SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(new Date());
    }
    public static Timestamp getDatetime(){
        return  new Timestamp(new Date().getTime());
    }
}
